 

package com.zdkj.subway.stm.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 
 *
 * @author songtuo
 * @date 2020-03-07 20:14:31
 */
@Data
@TableName("sw_st_internet_ticket_equipment_details")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "互联网售票机明细表")
public class SwStInternetTicketEquipmentDetails extends Model<SwStInternetTicketEquipmentDetails> {
private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @TableId
    @ApiModelProperty(value="唯一标识")
    private Integer id;
    /**
     * 主表关联ID
     */
    @ApiModelProperty(value="主表关联ID")
    private Integer relationId;
    @ApiModelProperty(value = "票种")
    @ExcelProperty(value = "票种", index = 3)
    private String ticketType;
    /**
     * 车票名称
     */
    @ApiModelProperty(value = "车票名称")
    @ExcelProperty(value = "车票名称", index = 4)
    private String ticketName;

    /**
     * 金额【元】
     */
    @ApiModelProperty(value = "金额【元】")
    @ExcelProperty(value = "金额【元】", index = 6)
    private BigDecimal ticketAmount;
    /**
     * 次数
     */
    @ApiModelProperty(value = "次数")
    @ExcelProperty(value = "次数", index = 5)
    private String ticketCount;

    /**
     * 设备编号
     */
    @ApiModelProperty(value="设备编号")
    private String equipmentCode;
    /**
     * 设备名称
     */
    @ApiModelProperty(value="设备名称")
    private String equipmentName;
    /**
     * 发售数量
     */
    @ApiModelProperty(value="发售数量")
    private Integer saleNumber;
    /**
     * 小计金额
     */
    @ApiModelProperty(value="小计金额")
    private BigDecimal totalSaleAmount;
    /**
     * 单价
     */
    @ApiModelProperty(value="单价")
    private BigDecimal unitPrice;
    /**
     * 部门ID
     */
    @ApiModelProperty(value="部门ID")
    private Integer deptId;
    /**
     * 创建人ID
     */
    @ApiModelProperty(value="创建人ID")
    private Integer creatorId;
    /**
     * 创建人名称
     */
    @ApiModelProperty(value="创建人名称")
    private String creatorName;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;
    /**
     * 数据更新时间
     */
    @ApiModelProperty(value="数据更新时间")
    private LocalDateTime updateTime;
    /**
     * 删除标志 1：删除 0：未删
     */
    @ApiModelProperty(value="删除标志 1：删除 0：未删")
    @TableLogic
    private String delFlag;

    @ApiModelProperty(value="线路")
    private String lineCode;

    @ApiModelProperty(value="站点")
    private String stationCode;

    @ApiModelProperty(value="开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty(value="结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;



    @ApiModelProperty(value="提交状态")
    private Integer approvalStatus;
    private String remark;
    @ApiModelProperty(value="收益日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date revenueDate;

    @ApiModelProperty(value="报表修改状态：0：关闭 1：打开")
    private String reportModifyStatus;

    private Integer passengerAttendantId;
    private String passengerAttendantJobNo;
    private String passengerAttendantName;
    private Integer attendancePersonId;
    private String attendancePersonJobNo;
    private String attendancePersonName;
    @ApiModelProperty(value="审核模块互联网表ID")
    private Integer swAuInternetTicketId;

    /**
     * 是否加入报表差错
     */
    @ApiModelProperty(value = "是否加入报表差错")
    private String isAddReprotError;
    }
